
//
//  ESTActivityCellView.m
//  ESTSCRMAPP
//
//  Created by 李贤立 on 2018/10/8.
//  Copyright © 2018年 Capfer. All rights reserved.
//

#import "ESTActivityCellView.h"

@interface ESTActivityCellView ()
@property (weak, nonatomic) IBOutlet UIImageView *iconView;
@property (weak, nonatomic) IBOutlet UILabel *titleLabel;
@property (weak, nonatomic) IBOutlet UILabel *detailLabel;

@end


@implementation ESTActivityCellView

+ (instancetype)creatActivityCellView {
    return [[NSBundle mainBundle] loadNibNamed:@"ESTActivityCellView" owner:nil options:nil].lastObject;
}
- (IBAction)didClickCoverButton:(UIButton *)sender {
    if (self.didClickCoverBlock) {
        self.didClickCoverBlock();
    }
}
- (void)setTitle:(NSString *)title {
    _title = title;
    self.titleLabel.text = title;
}
- (void)setDetail:(NSString *)detail {
    _detail = detail;
    self.detailLabel.text = detail;
}
- (void)setIconString:(NSString *)iconString {
    _iconString = iconString;
    [self.iconView loadURLImageWithURLString:iconString];
}
@end
